import request from '@/utils/request'

const mudulePath = 'match/referee/'
export function saveReferee(data) {
  return request({
    url: mudulePath + 'save',
    method: 'post',
    data
  })
}

export function updateReferee(data) {
  return request({
    url: mudulePath + 'update',
    method: 'post',
    data
  })
}

export function getRefereeList(id) {
  return request({
    url: mudulePath + 'list',
    method: 'get',
    params: id
  })
}

export function restLoginState(id) {
  return request({
    url: mudulePath + 'restLoginState/' + id,
    method: 'post'
  })
}

export function deleteReferee(menuIds) {
  return request({
    url: mudulePath + 'delete',
    method: 'post',
    data: menuIds
  })
}
